//
//  MonthCollectionCell.h
//  TimeTest
//
//  Created by 王鹏宇 on 2018/1/26.
//  Copyright © 2018年 LvJianfeng. All rights reserved.
//

#import <UIKit/UIKit.h>
@class MonthModel;

@protocol MonthCollectionCellDelegate <NSObject>

- (void)selectDate:(NSDate *)date;
@end
@interface MonthCollectionCell : UICollectionViewCell<UICollectionViewDelegate,UICollectionViewDataSource>

@property (strong, nonatomic) NSMutableArray *daysArray;
@property (nonatomic, strong)UICollectionView * collectionView;
@property (strong, nonatomic) NSDate *tempDate;

@property (strong, nonatomic) NSDate *startDate;
@property (strong, nonatomic) NSDate *endDate;
@property (strong, nonatomic) NSDate *selectDate;
//@property (strong, nonatomic) NSArray * closeDateArray;

@property (weak, nonatomic)id<MonthCollectionCellDelegate> delegate;
//-(void)configData:(NSDate *)date  StartDate:(NSDate *)startDate EndDate:(NSDate *)endDate SelectDate:(NSDate *)selected;

- (void)configdata:(NSMutableArray *)dateArray  SelectDate:(NSDate *)selectedDate;
@end


//CollectionViewHeader
@interface CalendarHeaderView : UICollectionReusableView

@end

//UICollectionViewCell
@interface CalendarCell : UICollectionViewCell
@property (weak, nonatomic) UILabel *dayLabel;

@property (strong, nonatomic) MonthModel *monthModel;

@end

//存储模型
@interface MonthModel : NSObject
@property (assign, nonatomic) NSInteger dayValue;
@property (strong, nonatomic) NSDate *dateValue;
@property (assign, nonatomic) BOOL isSelectedDay;
@property (assign, nonatomic) BOOL isCanSelect;
@property (assign, nonatomic) BOOL isToday;
@end
